import socket

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
value_str = """{"mission_action":6,"mission_data":0,"mission_id":"123","msg":7}"""
sock.sendto(bytes(value_str,encoding='utf-8'), ("127.0.0.1",8027))
sock.close()